<?php
// Test of R0910CMS
// created by TLightSky
// time:20100512

if(!defined("IN_R0910CMS")) {
    exit("Access Denied!");
}

class R_Model_AddWebsite extends R_Model_Abstract {
	private $websiteTable=null;
	
	function __construct() {
		$websiteTable=getInstance('Admin_Manage')->getConfig('sitepre')."website";		
	}
	
	function addInfo($websiteInfo) {
		$db=getInstance('R_Db_Manage')->get();
		if($websiteInfo!=null) {
			$newWebsite=array('tableName'=>$this->websiteTable,'values'=>$websiteInfo);
			$db->insert($newWebsite);
			} else {
			throw new R_Exception("Website information is null!");
			}
	}
}
